package com.clw.form;

import com.sun.xml.internal.ws.api.model.MEP;
import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * Created by Administrator on 2017-12-16.
 */
@Data
public class RegisterForm {
    @NotEmpty(message = "请输入账号")
    @Length(max = 20,min = 3,message = "用户名长度必须为3-20位")
    private String userName;

    @NotEmpty(message = "请输入密码")
    @Length(max = 12,min = 6,message = "请输入6-12位密码")
    private String password;

    @NotEmpty(message = "请再次输入密码")
    @Length(max = 12,min = 6,message = "请输入6-12位密码")
    private String reset_password;

    @NotEmpty(message = "请输入手机号")
    private String phone;

    @NotEmpty(message = "请输入姓名")
    private String nickname;

    @Email(message = "请输入正确的邮箱")
    @NotEmpty(message = "请输入邮箱")
    private String email;
}
